<template>
  <div class="full-screen">
    <svg-icon icon-class="fullscreen" style="color:#fff; width: 20px; height: 20px" @click="changeScreen" />
  </div>
</template>

<script>
import screenfull from 'screenfull'
export default {
  methods: {
    changeScreen() {
      if (screenfull.isEnabled) {
        screenfull.request()
      }
    }
  }
}
</script>

<style lang="scss" scoped>
.full-screen{
  display: inline-block;
}
</style>
